﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using PMSGSC.DAL;

namespace PMSGSC.App
{
    public partial class frmReportStatusOfComponent : DevExpress.XtraEditors.XtraForm
    {
        public frmReportStatusOfComponent(List<Equipment> dataSource)
        {
            InitializeComponent();

            rpStatusOfEquipment rp = new rpStatusOfEquipment(dataSource);
            rp.PrintingSystem.ClearContent();
            rp.CreateDocument();
            printControl1.PrintingSystem = rp.PrintingSystem;
        }
    }
}